package falling
{
	import org.flixel.FlxSprite;
	/**
	 * ...
	 * @author morgan
	 */
	public class FallingState2 extends GameState
	{
		[Embed (source = "../../data/falling/2_bg.png")] private var img_bg:Class;
		[Embed (source = "../../data/falling/2_player.png")] private var img_player:Class;
		
		public var bg:FlxSprite;
		public var sun:Sun;
		public var cloud:Cloud;
		public var birds:Birds;
		public var player:FlxSprite;
		public var text2:BlurText;
		public var text3:BlurText;
		
		public function FallingState2() 
		{
			
		}
		
		override public function create():void 
		{
			super.create();
			
			bg = new FlxSprite(0, 0, img_bg);
			hazy.add(bg);
			
			sun = new Sun(420, 230);
			hazy.add(sun);
			
			birds = new Birds(165, 110);
			hazy.add(birds);
			
			cloud = new Cloud(150, 100);
			hazy.add(cloud);
			
			player = new FlxSprite(230, 200, img_player);
			player.velocity.y = 2;
			player.angularVelocity = 1;
			above.add(player);
			
			var text1:BlurText = new BlurText(20, 20, 20);
			text1.setText("I fall to the earth in slow motion.");
			text1.clearWords = 999;
			text1.clearingToWord = 999;
			above.add(text1);
			
			text2 = new BlurText(30, 50, 25);
			text2.setText("words");
			text2.clearWords = 0;
			text2.clearingToWord = 0;
			above.add(text2);
			
			text3 = new BlurText(300, 150, 18);
			text3.setText("words");
			text3.clearWords = 0;
			text3.clearingToWord = 0;
			above.add(text3);
		}
		
		override public function update():void 
		{
			super.update();
		}
		
	}

}